﻿using System;
using System.Collections.Generic;

namespace JSONHelpers
{
    public class JSONFieldArray : JSONField
    {
        public readonly string      nombre  = string.Empty;
        public readonly JSONArray   array   = JSONArray.Empty;

        public JSONFieldArray (string nombre, JSONArray array)
        {
            this.nombre = nombre;
            this.array  = array;
        }

        public override string ToString()
        {
            return string.Format("\"{0}\":{1}", nombre, array.ToString());;
        }
    }
}
